package com.tyqx.hashchainbackend.controller.config;

import at.pollux.thymeleaf.shiro.dialect.ShiroDialect;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.ImportResource;

/**
 * shiro 配置
 */
@Configuration
@ImportResource(locations = "classpath:applicationContext-shiro.xml")
public class ShiroConfiguration {
    /**
     * 配置ShiroDialect，用于Shiro和thymeleaf标签配合使用
     * @return
     */
    @Bean
    public ShiroDialect shiroDialect(){
        return  new ShiroDialect();
    }
}
